package org.vehicle.dao;

import java.util.List;
import java.util.Map;

import org.vehicle.dao.base.BaseDaoMapper;
import org.vehicle.entity.VehicleInfo;

public interface VehicleInfoMapper extends BaseDaoMapper<VehicleInfo, Long>{
	/**
	 * 通过车牌号获取车辆信息
	 * @param vehicleLicense
	 * @return
	 */
	public VehicleInfo findVehicleInfoByVehicleLicense(String vehicleLicense);
	/**
	 * 通过标识获取车辆信息
	 * @param vehicleLicense
	 * @return
	 */
	public VehicleInfo findVehicleInfoByCode(Map<String, Object> map);
	/**
	 * 通过车辆id及检查设备类型修改检查数量+1
	 * @param map
	 */
	public void updateCountById(Map<String, Object> map);
	/**
	 * 查询正在行驶车辆信息列表
	 * @return
	 */
	public List<Map<String, Object>> findRunVehicleInfoList();
	/**
	 * 查询设备分页列表
	 * @param paramMap
	 * @return
	 */
	public List<VehicleInfo> getDeviceInfoList(Map<String, Object> paramMap);
	/**
	 * 查询设备数量
	 * @param paramMap
	 * @return
	 */
	public Integer getDeviceInfoCount(Map<String, Object> paramMap);
	
}